package scau.redi.social_platform.dao;

import scau.redi.social_platform.domain.pojo.SharedComment;

import java.util.List;

public interface SharedCommentMapper {
    int deleteByPrimaryKey(Integer id);

    int deleteByPrimaryKeyAndUserId(Integer id, Integer userId);

    int insert(SharedComment record);

    int insertSelective(SharedComment record);

    SharedComment selectByPrimaryKey(Integer id);

    List<SharedComment> selectFatherCommentBySharedId(Integer sharedId);

    List<SharedComment> selectBySharedId(Integer sharedId);

    List<SharedComment> selectByFatherId(Integer fatherId);

    int selectLastInsertId();

    int updateByPrimaryKeySelective(SharedComment record);

    int updateByPrimaryKeyWithBLOBs(SharedComment record);

    int updateByPrimaryKey(SharedComment record);
}